package com.woniuxy.commons.exception.code;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public enum MonthSaleExceptionCode {
    MONTH_SALE_NOT_STOREID("商铺id未录入", 5300),
    MONTH_SALE_NOT_FOODID("菜品id未录入", 5301),
    MONTH_SALE_NOT_DATESTR("年月未录入", 5302),
    MONTH_SALE_NOT_COUNT("销量未录入或销量不能小于0", 5303),
    MONTH_SALE_NOT_ID("id未找到", 5304),
    MONTH_SALE_NOT_STORE("该商铺不存在", 5305),
    MONTH_SALE_NOT_FOOD("该菜品不存在", 5306),
    MONTH_SALE_DATE("年月不能是未来时间", 5307);


    private String message;
    private Integer code;

    MonthSaleExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
